<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数值扩展</title>
</head>
<body>
    <script>
    let b = 0b1010;
    let o = 0o737;
    let x = 0xfaf; // 0 1 2 3 4 5 6 7 8 9 a b c d e f
    // 10   0 1 2 3456789
    // 2    0 1     10
    // console.log(b, o ,x);

    // Number.isInFinite() +
    console.log(Number.isFinite(Infinity));

    console.log(NaN === NaN);// false
    console.log(Number.isNaN(NaN));

    console.log(Number.parseFloat('3.14px'));

    console.log(Math.trunc(3.14));
    console.log(Number.isInteger(1));
   
    </script>
</body>
</html>